package com.ushine.web.communication.websocket.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @Author yls
 * @Date 2020/3/31 10:45
 * @Description webSocket消息队列控制
 * //@EnableWebSocketMessageBroker 开启WebSocket消息代理
 * 为 com.ushine.web.communication.websocket.config.WebsocketServer 服务
 * @Version 1.0
 **/
@Configuration
public class WebSocketConfig{

    /**
     * 功能描述:
     * 〈这个Bean会自动注册使用@ServerEndpoint注解声明的websocket endpoint〉
     *
     * @return : org.springframework.web.socket.server.standard.ServerEndpointExporter
     * @author : yls
     * @date : 2022/5/7 17:12
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
